faApp.controller('ToolsUploadCtrl',['$scope','userService','$location','$controller',function($scope,userService,$location,$controller) {   
	$controller('BaseCtrl', {$scope: $scope}); 

  $scope.onUploadFile({
    showMessage : function(m){ alert(m); },
    onComplete:function(f,response){
      if (response.statusCode == "0000") {
        $scope.picAddre = App.staticHost + response.attribute.fileUrl;
        $scope.$apply();
      } else { 
        alert('上传失败'); 
      }
    }    
  });
}]); 
